package org.cyb.demo.dao;

import org.apache.ibatis.annotations.Param;
import org.cyb.demo.domain.Chapter;
import org.cyb.demo.domain.Course;
import org.cyb.demo.domain.Ppt;
import org.cyb.demo.domain.Section;

import java.util.List;

public interface PptMapper {
    int insert(
            @Param("ppt")Ppt ppt,
            @Param("section")Section section
    );

    void delete(
            @Param("ppt")Ppt ppt
    );

    void update(
            @Param("ppt")Ppt ppt
    );

    List<Ppt> selectByName(
            @Param("ppt")Ppt ppt
    );

    List<Ppt> selectAll();

    Ppt selectOneByName(
            @Param("ppt")Ppt ppt
    );
}
